import Vue from 'vue'
import Router from 'vue-router'

import SelfSupport from '@/components/selfSupport/SelfSupport.vue'
import Taking from '@/components/selfSupport/Taking.vue'
import Sending from '@/components/selfSupport/Sending.vue'
import My from '@/components/selfSupport/My.vue'
import MyOrder from '@/components/selfSupport/MyOrder.vue'
import AboutUs from '@/components/ImgPage/about.vue'
import Problem from '@/components/ImgPage/problem.vue'


Vue.use(Router)

export default new Router({
  routes: [
    {
        path:'/Taking',
        name:'Taking',
        component: Taking
    },
    {
        path:'/Sending',
        name:'Sending',
        component: Sending
    },
    {
        path:'/My',
        name:'My',
        component: My
    },{
      path:'/MyOrder',
      name:'myOrder',
      component: MyOrder
    },{
      path:'/ImgPage/aboutUs',
      name:'aboutUs',
      component: AboutUs
    },{
      path:'/ImgPage/problem',
      name:'problem',
      component: Problem
    },{
      path: '*',
      name: 'other',
      redirect:'/Taking'
    }
  ]
})
